
<h2>登陆</h2>

<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>

 <div><%= f.label :user_name,"用户名" %><br />
  <%= f.text_field :user_name %></div>

  <div><%= f.label :password,"密码" %><br />
  <%= f.password_field :password %></div>

  <% if devise_mapping.rememberable? -%>
    <div><%= f.check_box :remember_me %> <%= f.label :remember_me,"保存登陆" %></div>
  <% end -%>

  <div><%= f.submit "登陆" %></div>
<% end %>

<%= render "links" %>